
<h2>Chat</h2>

<form>
  <input placeholder="Message..." ng-model="newMessage">
  <button type="submit" ng-click="addMessage(newMessage);newMessage = null;">send</button>
</form>

<ul id="messages" ng-show="messages.length">
  <li ng-repeat="message in messages | reverse ">{{message.text}} <button>edit</button></li>
</ul>

<p class="alert alert-danger" ng-show="err">{{err}}</p>
<mydatepicker></mydatepicker>